package com.itheima.ydd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.ydd.common.R;
import com.itheima.ydd.dto.AdvimgDto;
import com.itheima.ydd.dto.PageInfo;
import com.itheima.ydd.pojo.YddAdvimg;
import org.springframework.http.ResponseEntity;

public interface YddAdvimgService extends IService<YddAdvimg> {
    /**
     * 根据id查询广告图详情
     * @param id
     * @return
     */
    ResponseEntity<R<YddAdvimg>> getAdvById(Integer id);


    /**
     * 广告图列表分页查询,需要根据advimgpos 来查询到广告位位置name
     * @param
     * @return
     */
    ResponseEntity<R<PageInfo<AdvimgDto>>> listByPagesWithPosName(String advimgdesc, String advimgpos, Integer page, Integer limit);


    /**
     * 广告图修改
     * @param yddAdvimg
     * @return
     */
    ResponseEntity<R<String>> updateImg(YddAdvimg yddAdvimg);
}
